<%@ page contentType="text/html;charset=UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<title>首页</title>
	<%@include file="/WEB-INF/views/modules/cms/front/include/head.jsp" %>
	<meta name="description" content="JeeSite ${site.description}" />
	<meta name="keywords" content="JeeSite ${site.keywords}" />
</head>
<body>
	<%@ include file="/WEB-INF/views/modules/cms/front/themes/basic/include/header.jsp" %>
    <%-- <div class="hero-unit" style="padding-bottom:35px;margin:10px 0;">
      <c:set var="article" value="${fnc:getArticle('512614175457779712')}"/>
      <h1>${fns:abbr(article.title,28)}</h1><p></p>
      <p>${fns:abbr(fns:replaceHtml(article.articleData.content),260)}</p>
      <p><a href="${article.url}" class="btn btn-primary btn-large">&nbsp;&nbsp;&nbsp;查看详情 &raquo;&nbsp;&nbsp;&nbsp;</a></p>
    </div>
    <div class="row">
      <div class="span4">
        <h4><small><a href="${ctx}/list-tzgg${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>通知公告</h4>
		<ul><c:forEach items="${fnc:getArticleList(site.siteCode, 'tzgg', 8, '')}" var="article">
			<li><span class="pull-right"><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></span><a href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
		</c:forEach></ul>
      </div>
      <div class="span4">
        <h4> <small><a href="${ctx}/list-zcfg${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>政策法规</h4>
		<ul><c:forEach items="${fnc:getArticleList(site.siteCode, 'zcfg', 8, '')}" var="article">
			<li><span class="pull-right"><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></span><a href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
		</c:forEach></ul>
      </div>
      <div class="span4">
        <h4><small><a href="${ctx}/list-heracles${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>Heracles百科</h4>
		<ul><c:forEach items="${fnc:getArticleList('wike', 'heracles', 8, '')}" var="article">
			<li><span class="pull-right"><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></span><a href="${article.url}" style="color:${article.color}">${fns:abbr(article.title,28)}</a></li>
		</c:forEach></ul>
      </div>
    </div>--%>
	<c:set var="index" value="1"/>
	<c:forEach items="${fnc:getCategoryList(site.siteCode, '0', 16, '')}" var="category">
		<c:if test="${category.site.siteCode eq site.siteCode && category.inList eq '1' && category.module ne ''}">
			<c:set var="index" value="${index+1}"/>
			${index % 2 eq 0 ? '<div class="row">':''}
			<div class="span6">
				<h4><small><a href="${ctx}/list-${category.categoryCode}${urlSuffix}" class="pull-right">更多&gt;&gt;</a></small>${category.categoryName}</h4>
				<c:if test="${category.module eq 'article'}">
					<ul><c:forEach items="${fnc:getArticleList(site.siteCode, category.categoryCode, 15, '')}" var="article">
						<li><span class="pull-right"><fmt:formatDate value="${article.updateDate}" pattern="yyyy.MM.dd"/></span><a href="${ctx}/view-${article.category.categoryCode}-${article.id}${urlSuffix}" style="color:${article.color}">${fns:abbr(article.title,52)}</a></li>
					</c:forEach></ul>
				</c:if>
				<c:if test="${category.module eq 'link'}">
					<ul><c:forEach items="${fnc:getLinkList(site.siteCode, category.categoryCode, 15, '')}" var="link">
						<li><span class="pull-right"><fmt:formatDate value="${link.updateDate}" pattern="yyyy.MM.dd"/></span><a target="_blank" href="${link.href}" style="color:${link.color}">${fns:abbr(link.title,52)}</a></li>
					</c:forEach></ul>
				</c:if>
			</div>
			${index % 2 ne 0 ? '</div>':''}
		</c:if>
	</c:forEach>
	<%@ include file="/WEB-INF/views/modules/cms/front/themes/basic/include/footer.jsp" %>
</body>
</html>